package com.gzz.orchid.context.infrastructure.persistence.entity.crm;

import com.gzz.orchid.context.infrastructure.persistence.AbstractPojo;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 客户认证表 crm_authentication
 * credential
 * certificate
 * authentication
 *
 * @author higmd
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CrmCredentialPo extends AbstractPojo {
    private Long id;
    /**
     * 客户编号 customer_no
     */
    private String customerNo;
    /**
     * 用户名 user_name
     */
    private String userName;
    /**
     * 密码 passwd
     */
    private String passwd;
    /**
     * 密码盐 salt
     */
    private String salt;
    /**
     * 登录时间 login_on
     */
    private LocalDateTime loginOn;
    /**
     * 变更时间 change_on
     */
    private LocalDateTime changeOn;
    /**
     * 登录次数 login_times
     */
    private Integer loginTimes;

    /**
     * 允许IP allow_ipaddr
     */
    private String allowIpaddr;

    /**
     * 禁止IP deny_ipaddr
     */
    private String denyIpaddr;
}
